Optimal. Leaf size=34 \[ \frac{c \log (x)}{a}-\frac{(b c-a d) \log \left (a+b x^2\right )}{2 a b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0314507, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {446, 72} \[ \frac{c \log (x)}{a}-\frac{(b c-a d) \log \left (a+b x^2\right )}{2 a b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{c+d x^2}{x \left (a+b x^2\right )} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{c+d x}{x (a+b x)} \, dx,x,x^2\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \left (\frac{c}{a x}+\frac{-b c+a d}{a (a+b x)}\right ) \, dx,x,x^2\right )\\ &=\frac{c \log (x)}{a}-\frac{(b c-a d) \log \left (a+b x^2\right )}{2 a b}\\ \end{align*}
Mathematica [A] time = 0.0120316, size = 34, normalized size = 1. \[ \frac{(a d-b c) \log \left (a+b x^2\right )}{2 a b}+\frac{c \log (x)}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 37, normalized size = 1.1 \begin{align*}{\frac{c\ln \left ( x \right ) }{a}}+{\frac{\ln \left ( b{x}^{2}+a \right ) d}{2\,b}}-{\frac{c\ln \left ( b{x}^{2}+a \right ) }{2\,a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.998298, size = 47, normalized size = 1.38 \begin{align*} \frac{c \log \left (x^{2}\right )}{2 \, a} - \frac{{\left (b c - a d\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.4653, size = 74, normalized size = 2.18 \begin{align*} \frac{2 \, b c \log \left (x\right ) -{\left (b c - a d\right )} \log \left (b x^{2} + a\right )}{2 \, a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.65127, size = 26, normalized size = 0.76 \begin{align*} \frac{c \log{\left (x \right )}}{a} + \frac{\left (a d - b c\right ) \log{\left (\frac{a}{b} + x^{2} \right )}}{2 a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15308, size = 49, normalized size = 1.44 \begin{align*} \frac{c \log \left (x^{2}\right )}{2 \, a} - \frac{{\left (b c - a d\right )} \log \left ({\left | b x^{2} + a \right |}\right )}{2 \, a b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]